package com.model;

import java.util.Set;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;

@Entity
public class HotelKTVList {
	
	private Integer id;
	private String token;
	/**
	 * 订单类型： 
	 */
	private String type;
	/**
	 * 简要说明：
	 */
	private String typeinfo;
	/**
	 * 原价：
	 */
	private Float price;
	/**
	 * 优惠价
	 */
	private Float yhprice;
	/**
	 * 图片文字描述
	 */
	private String name;
	/**
	 * 图片地址
	 */
	private String picurl;
	/**
	 * 图片跳转地址以http://开头
	 */
	private String url;
	/**
	 * 配套设施
	 */
	private String info;
	
	private HotelKTV hotelKtv;
	private Set<HotelKtvOrder> orders;
	
	@OneToMany(mappedBy="hotelKTVList")
	public Set<HotelKtvOrder> getOrders() {
		return orders;
	}
	public void setOrders(Set<HotelKtvOrder> orders) {
		this.orders = orders;
	}
	@ManyToOne
	@JoinColumn(name="hotelktvid",insertable=true,unique=true)
	public HotelKTV getHotelKtv() {
		return hotelKtv;
	}
	public void setHotelKtv(HotelKTV hotelKtv) {
		this.hotelKtv = hotelKtv;
	}
	@Id
	@GeneratedValue
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getToken() {
		return token;
	}
	public void setToken(String token) {
		this.token = token;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getTypeinfo() {
		return typeinfo;
	}
	public void setTypeinfo(String typeinfo) {
		this.typeinfo = typeinfo;
	}
	public Float getPrice() {
		return price;
	}
	public void setPrice(Float price) {
		this.price = price;
	}
	public Float getYhprice() {
		return yhprice;
	}
	public void setYhprice(Float yhprice) {
		this.yhprice = yhprice;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getPicurl() {
		return picurl;
	}
	public void setPicurl(String picurl) {
		this.picurl = picurl;
	}
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	public String getInfo() {
		return info;
	}
	public void setInfo(String info) {
		this.info = info;
	}
	
}
